class MapDataParse {

    /**
     * 创建地图数据
     * map 不可用的地图块
     */
    public static createMapData(map: number[]): void {
        let len: number = map.length;
        GameData.unmapnum = len;
        let index: number = 0;
        for (let i = 0; i < len; i++) {
            index = map[i];
            let row: number = Math.floor(index / GameData.MaxColumn);
            let col: number = index % GameData.MaxRow;
            GameData.mapData[row][col] = -1;
        }
        GameData.currentElementNum = GameData.MaxRow * GameData.MaxColumn - len;
    }
}